#include<stdio.h>
#define N 100
int main()
{
    int a[N];
    int n, neg = 0, zero = 0, pos = 0;
    scanf("%d", &n);
    for(int i = 0; i < n; i ++)
    {
        scanf("%d ", &a[i]);
        if(a[i] > 0) pos += 1;
        else if(a[i] = 0) zero +=1;
        else neg +=1;

    }
    printf("%d %d %d", neg, zero, pos);

    return 0;
}
